#include "OI.h"
#include "Commands/MoveLever.h"

OI::OI() {
	
	stick1 = new Joystick(JOYSTICK1_PORT);
	stick2 = new Joystick(JOYSTICK2_PORT);
	button3 = new JoystickButton(stick2, 3);
	button2 =  new JoystickButton(stick2, 2);
	button5 =  new JoystickButton(stick2, 5);
	// Process operator interface input here.
	button3->WhileHeld(new MoveLever(1));
	button2->WhileHeld(new MoveLever(-1));
	button5->WhileHeld(new MoveLever(0));
}

Joystick * OI::getJoystick1() {
return stick1;
}

Joystick * OI::getJoystick2() {
return stick2;
}
